# myproject/api/pagination.py

from rest_framework.pagination import PageNumberPagination

class MyCustomPagination(PageNumberPagination):
    page_size = 100  # 默认每页显示的数量
    page_size_query_param = 'page_size'  # 允许客户端请求的页面大小参数名
    max_page_size = 10  # 客户端能请求的最大页面大小
